﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fdb;
using Fdb.Model;

namespace Model
{
    public class Test_DbContext : BaseDbContext
    {
        /// <summary>
        /// cust逻辑对象
        /// </summary>
        public readonly Logic<Cust> Cust = new Logic<Cust>();

        /// <summary>
        /// 默认构造方法
        /// </summary>
        public Test_DbContext()
        {

        }

        /// <summary>
        /// 全局数据库上下文构造方法
        /// </summary>
        /// <param name="connectionString">数据库连接字符串</param>
        public Test_DbContext(string connectionString) : base(connectionString)
        {
            this.Cust.ConnectionString = connectionString;
            this.Cust.DatabaseType = DatabaseType.SQLite;
        }
    }
}